<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SuperOcean</title>
<link href="<?php echo base_url().'asset/'?>css/style.css" rel="stylesheet" type="text/css" />
</head>

<div id="home_title"><img src="<?php echo base_url().'asset/'?>images/title_icon.png" /> Giỏ hàng</div>
        
<div class="feat_prod_box_details">
<?php 
if($this->cart->total_items()==0)
	echo 'Không có sản phẩm nào trong giỏ hàng của bạn!';
else
{
	echo '<table class="cart_table" style="margin-left:15px; margin:auto;">
            	<tr class="cart_title">
                	<td>Item pic</td>
                	<td style="width:130px;">Product name</td>
                    <td>Unit price</td>
                    <td>Qty</td>
                    <td>Total</td>
					<td>Options</td>
                </tr>';	
	foreach($this->cart->contents() as $sp1)
	{
		$ttsp = $this->msanpham->thongtinsanpham($sp1['id']);
		echo '<tr>
             		<td><img src="'.base_url().'asset/images/'.$ttsp->hinh.'" alt="" title="" border="0" class="cart_thumb" width="50" height="50" /></td>
                	<td>'.$sp1['name'].'</td>
                    <td>'.$sp1['price'].'$</td>
                    <td>'.$sp1['qty'].'</td>
                    <td>'.$sp1['price']*$sp1['qty'].'$</td>
					<td>'.anchor('shoppingcart/xoasanpham/'.$sp1['rowid'], 'Delete').'</td>
                </tr>';
	}
	
	echo '</table>
				<div class="clean10"></div>
				<div id="buy_more_button">'.anchor('templateuser/sanpham', '<img src="'.base_url().'asset/images/buy-more-button.png">').'</div>
				<div style="float:left"><input type="submit" name="checkout" value="Check Out"></div>';
	
}
?>
           
</div>	

